<?php echo'404';die();?>
{if $module.FileName=='hotpost'}
<div class="sidebox">
  <h2>热门文章</h2>
  <ul class="hotpost">
    {php}
    $stime = time();
    $ytime = 365*24*60*60;
    $ztime = $stime-$ytime;
    $order = array('log_ViewNums'=>'DESC');
    $where = array(array('=','log_Status','0'),array('>','log_PostTime',$ztime));
    $array = $zbp->GetArticleList(array('*'),$where,$order,array(10),'');
    {/php}
    {foreach $array as $related}
    {if $zbp->CheckPlugin('IMAGE')}{php}IMAGE::getPics($related,80,65,4){/php}{/if}
    {if $zbp->CheckPlugin('sf_img1')}{php}SF_img1::getPics($related,80,65,4){/php}{/if}
    <li><a href="{$related.Url}" title="{$related.Title}" target="_blank"> <img src="{if $zbp->CheckPlugin('IMAGE') && $related->IMAGE_COUNT>0}{$related.IMAGE[0]}{elseif $zbp->CheckPlugin('sf_img1') && $related->sf_img_count>0}{$related.sf_img[0]}{else}{ydblog_thumbnail($related)}{/if}" alt="{$related.Title}" title="{$related.Title}" class="thumbnail" />
      <div> <span class="hot-post-title" >{$related.Title}</span> <span class="hot-post-info" ><i class="icon-clock"></i>{$related.Time('m-d')}</span> <span class="hot-post-info" ><i class="icon-eye"></i>{$related.ViewNums}</span> </div>
      </a> </li>
    {/foreach}
  </ul>
</div>
{elseif $module.FileName=='randpost'}
<div class="sidebox">
  <h2>随机文章</h2>
  <ul class="hotpost">
    {php}echo ydblog_module_Rand(){/php}
  </ul>
</div>
{else}
<div class="sidebox"> {if (!$module.IsHideTitle)&&($module.Name)}
  <h2>{$module.Name}</h2>
  {/if}
  {if $module.Type=='div'}
  <div class="hotpost widget_{$module.HtmlID}_inner">{$module.Content}</div>
  {/if}
  {if $module.Type=='ul'}
  <ul class="hotpost widget_{$module.HtmlID}_inner">
    {$module.Content}
  </ul>
  {/if} </div>
{/if} 